<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 首先先让文本失去换行功能，white-space:nowrap;
        再溢出部分不展示隐藏，overflow:hidden;
        最后把溢出部分打点，text-overflow:ellipsis; */
        p{
            width: 100px;
            height: 20px;
            line-height: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
    <p>中国军方新设“八一勋章”首dwadawdwad
    批候选人</p>
</body>
</html>